package lol.clann.minecraft.springboot.api.bukkit.model;

import lombok.Builder;
import lombok.Getter;
import lombok.ToString;
import org.bukkit.event.HandlerList;

import java.util.Objects;

@Getter
@ToString
@Builder
public class EventType {
    private String name;
    private Class type;
    private HandlerList handlerList;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EventType eventType = (EventType) o;
        return Objects.equals(type, eventType.type);
    }

    @Override
    public int hashCode() {

        return Objects.hash(type);
    }
}